import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'

// const routerHistory = createWebHistory();
const routerHistory = createWebHashHistory();

//路由路径
const routes = [
  {
    path: '/',
    redirect: '/Login'
  },
  {
    path: '/Login',
    component: () => import("@/Login/login.vue"),
    name: "贡聘招聘系统企业管理端",
    meta: { title: "登录 | 贡聘招聘系统企业管理端" }
  },
  {
    path: '/EnterpriseRegister',
    component: () => import("@/views/EnterpriseRegister/EnterpriseRegister.vue"),
    name: "企业注册",
    meta: { title: "企业注册 | 贡聘招聘系统企业管理端" }
  }
]

const router = createRouter({
  history: routerHistory,
  routes: routes,
});

export default router
